package com.micro.fallback;

import com.micro.api.entity.User;
import com.micro.base.BaseApiService;
import com.micro.base.ResponseBase;
import com.micro.feign.IUserServiceFeign;
import org.springframework.stereotype.Component;

/**
 * @title: IUserServiceFallback
 * @Author: yzp
 * @Date: 2019/10/6 15:46
 * @Version 1.0
 */
@Component
public class IUserServiceFallback extends BaseApiService implements IUserServiceFeign {
    @Override
    public User getUser(String name) {
        return null;
    }

    @Override
    public ResponseBase getUserInfo() {
        return setResultError("服务器繁忙");
    }
}
